
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<html>
<head>
    <title>Title</title>
    <script  src="./js/jquery.js"></script>
</head>
<script>
    function checkExist(uploaduser){
        $.ajax({
            url:'checkIdNumb er',
            type:'post',
            data:'uploaduser='+uploaduser,
            dataType:'text',
            success:function(responseData){
                if (responseData=='0'){
                    $('#tipIdNumber').html('可用')
                }else {
                    $('#tipIdNumber').html('不可用')
                }
            }
        })
     }
</script>
<body style = "text-align:center;">
<form name="from1" method="post" action="Index">
<form name="from2" method="post" action="listpage">
    <table border="1px">
<tr>
    <td>文档名称:</td>
    <td><input type="text" name="title" /></td>
</tr>

<tr>
    <td>文档摘要:</td>
    <td><input type="text" name="summray"/></td>
</tr>


<tr>
    <td>上传人:</td>
    <td><input type="text" name="uploaduser" onblur="checkExist(this.value)"/><span id="uploadu"></span></td>
</tr>

<tr>
    <td>上传时间:</td>
    <td><input type="text" name="createdate"/></td>
</tr>

<tr>
    <td>操作:</td>
    <td><input type="submit" value="添加" name="op"/>
    <input type="submit" value="返回" name="ap"/></td>
</tr>
    </table>
</form>
</form>
</body>
</html>
